package org.goat.caprabank.client;

import org.goat.caprabank.shared.CaprabankException;

import com.google.gwt.user.client.rpc.AsyncCallback;

public class DefaultCallback<T> implements AsyncCallback<T> {

	@Override
	public void onFailure(Throwable caught) {
		new ErrorDialog().showMessage(caught instanceof CaprabankException ? caught.getMessage() : "An unexpected error occured.");
	}


	@Override
	public void onSuccess(T result) {
	}
}
